from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse, JsonResponse

# Create your views here.


@csrf_exempt
def index(request):
  if request.method == "GET":
    return HttpResponse("Hello, world. You're at the polls index. Get:%s" % request.GET["Test"])
  elif request.method == "POST":
    return HttpResponse("Hello, world. You're at the polls index. Post:%s" % request.POST["Test"])
